do not use xthickness/ythickness, they aren't used any longer for drawing.
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 7 Dec 2006 15:56:03 +0000 (15:56 +0000)
committerCarlos Garnacho <carlosg@src.gnome.org>
Thu, 7 Dec 2006 15:56:03 +0000 (15:56 +0000)
2006-12-07  Carlos Garnacho  <carlosg@gnome.org>

        * gtk/gtkcellrendererprogress (compute_dimensions): do not use
        xthickness/ythickness, they aren't used any longer for drawing.

ChangeLog
gtk/gtkcellrendererprogress.c

index 2d98abb4560cbb17240a65195a539399842d6edf..0a7139172e69c0acb1b05ceecb3af05c9a81d6ca 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-12-07  Carlos Garnacho  <carlosg@gnome.org>
+
+       * gtk/gtkcellrendererprogress (compute_dimensions): do not use
+       xthickness/ythickness, they aren't used any longer for drawing.
+
 2006-12-07  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkrc.c (_gtk_rc_init): Fix clipping of accelerator
index 0e4a13d238bf0e40b38a564ea4cc0e55292fe794..ce930e5225924950f6b51452edaae9851308ac39 100644 (file)
@@ -269,11 +269,11 @@ compute_dimensions (GtkCellRenderer *cell,
   pango_layout_get_pixel_extents (layout, NULL, &logical_rect);
   
   if (width)
-    *width = logical_rect.width + cell->xpad * 2 + widget->style->xthickness * 2;
+    *width = logical_rect.width + cell->xpad * 2;
   
   if (height)
-    *height = logical_rect.height + cell->ypad * 2 + widget->style->ythickness * 2;
-  
+    *height = logical_rect.height + cell->ypad * 2;
+
   g_object_unref (layout);
 }